package com.guaoran.other.singleton.hungry;

/**
 * @author : 孤傲然
 * @Description :
 *  饿汉模式 线程安全
 * @date :2018/5/13 13:46
 */
public class HungrySingleton {
    /*构造方法私有*/
    private HungrySingleton() {}
    private static HungrySingleton hungrySingleton = new HungrySingleton();
    public static HungrySingleton getInstance(){
        return hungrySingleton;
    }

}
